<div class="row-fluid">
	<div class="span12">
		<ul class="breadcrumb">
			<li>
				<a href="index.php">
					<i class="radmin-icon radmin-home"></i>
					<?php echo t('page', 'Dashboard'); ?>
				</a>
				<span class="divider">/</span>
			</li>
			<li>
				<a href="whm-accounts.php">
					<i class="radmin-icon radmin-clipboard-2"></i>
					<?php echo t('page', 'WHM Accounts'); ?>
				</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				<i class="radmin-icon radmin-search"></i>
				<?php echo t('page', 'Search Accounts'); ?>
			</li>
		</ul>
	</div>
</div>

<div class="row-fluid">
	<div class="span12">
		<h4 class="title"><?php $this->widget('application.components.mywidgets.WikiHelp', array('wiki' => 'whm_accounts_search')); ?> <?php echo t('page', 'Search WHM Accounts'); ?></h4>
		<div class="squiggly-border"></div>
		
		<ul class="nav nav-tabs" id="searchTab">
			<li class="active"><a href="#account"><?php echo t('page', 'By Account'); ?></a></li>
			<li><a href="#group"><?php echo t('page', 'By Group'); ?></a></li>
			<li><a href="#host"><?php echo t('page', 'By Host'); ?></a></li>
			<li><a href="#all"><?php echo t('page', 'By All'); ?></a></li>
		</ul>

		<div class="tab-content">
			<div class="tab-pane active" id="account">
				<?php $this->renderPartial('forms/_search_byaccount', array('searchForm' => $CpanelAccountsSearchForm)); ?>
			</div>
			
			<div class="tab-pane" id="group">
				<?php $this->renderPartial('forms/_search_bygroup', array('searchForm' => $CpanelAccountsSearchForm)); ?>
			</div>
			
			<div class="tab-pane" id="host">
				<?php $this->renderPartial('forms/_search_byhost', array('searchForm' => $CpanelAccountsSearchForm)); ?>
			</div>
			
			<div class="tab-pane" id="all">
				<?php $this->renderPartial('forms/_search_byall', array('searchForm' => $CpanelAccountsSearchForm)); ?>
			</div>
		</div>
		<script>
			$('#searchTab a').click(function(e){
				e.preventDefault();
				$(this).tab('show');
			});
			$(function () {
				$('#searchTab a[href="#group"]').tab('show');
			});
		</script>
	</div>
</div>